<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
</head>
<!--引入jsencrypt.js-->
<script src="jsencrypt/yahoo.js"></script>  
<script src="jsencrypt/core.js"></script>
<script src="jsencrypt/md5.js"></script>
<script src="jsencrypt/sha1.js"></script>
<script src="jsencrypt/sha256.js"></script>
<script src="jsencrypt/jsbn.js"></script>  
<script src="jsencrypt/jsbn2.js"></script>  
<script src="jsencrypt/prng4.js"></script>  
<script src="jsencrypt/rng.js"></script>  
<script src="jsencrypt/rsa.js"></script>  
<script src="jsencrypt/rsa2.js"></script>  
<script src="jsencrypt/base64.js"></script>  
<script src="jsencrypt/rsapem-1.1.js"></script>
<script src="jsencrypt/rsasign-1.2.js"></script>
<script src="jsencrypt/asn1hex-1.1.js"></script>
<script src="jsencrypt/crypto-1.1.js"></script>
<script src="jsencrypt/pkcs5pkey-1.0.js"></script>
<script src="jsencrypt/base64x-1.1.js"></script>
<script src="jsencrypt/keyutil-1.0.js"></script>

<script src="encryptutil.js"></script>
<script type="text/javascript">

	var src = "123456";
	var enc = encryptutil.encrypt(src);
	console.log("加密：" + enc);
	var dec = encryptutil.decrypt(enc);
	console.log("解密：" + dec);
	
	var sign = encryptutil.signature(src);
	console.log("签名：" + sign);
	
	var b = encryptutil.signatureVf(src ,sign);
	console.log("验签：" + b);
</script>

</html>